<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="org.wso2.carbon.registry.common.utils.RegistryUtil" %>
<%@ page import="org.wso2.carbon.registry.custom.skb.ui.utils.GetKBUtil" %>
<%@ page import="org.wso2.carbon.registry.common.ui.UIException" %>
<%@ page import="org.wso2.carbon.registry.custom.skb.ui.beans.KBItem" %>
<%
    String cPath = request.getParameter("path");
    KBItem kbitem;
    try {
        kbitem = GetKBUtil.getKBItem(cPath, config, session);
    } catch (UIException e) {
        %>Error occured while retrieving kb item details<%
        return;
    }

%>

<br/>
 
<form id="skbEditForm">
<input type="hidden" name="path" value="<%=cPath%>"/>
<table width="50%">
<thead>
		<tr>
			<th colspan="2">
<strong>Edit KBItem</strong>
</th>
		</tr>
	</thead>
	<tbody>
    <tr><td class="leftCol-med">Problem Name <span class="required">*</span></td>
        <td><input type="text" name="name" value="<%=kbitem.getProblemName()%>"/></td>
    </tr>
    <tr>
  
    <tr>
        <td colspan="2" class="buttonRow"><input class="button" value="Save" onclick="submitCustomViewUIForm('skbEditForm', '../registry/custom/skb/skb_edit_handler_ajaxprocessor.jsp')"/></td>
        <td></td>
    </tr>
       </tbody>
</table>
</form>

<br/>
